{template 'common/header-cms'}
<style>
/* about */
/* content */
.content{ margin:30px 0;}
.content h5{ font-weight:bold; font-size:16px; line-height:50px;}
.content p{ line-height:26px; color:#666; margin-bottom:10px;}
.about_content{ overflow:hidden;zoom:1; margin-top:20px;}
.about_content .left{ float:left; margin-right:20px; border:1px solid #ddd;}
.about_content .left a{ display:block; padding:10px 20px; border-bottom:1px solid #ddd;}
.about_content .right{ float:left; padding:0 20px 20px; width:900px;}
</style>
<link href="./resource/weidongli/css/cms.css" rel="stylesheet" type="text/css" />
<div class="neirong">
{if $do == 'list'}
<div class="breadcrumbs margin-bottom-40 cl">
<div class="xiaoyu_container cl">
        <h1 class="color-green z"><a href="{php echo url('article/agent-show/list');}">代理商列表</a></h1>
        <ul class="y breadcrumb">
        <li><a href="./" title="首页">首页</a> <span class="divider">/</span></li>
		<li><a href="{php echo url('article/agent-show/list');}">公司列表</a><span class="divider">/</span></li>
		<li class="active">{if !$cateid}所有公司{else}{$categroys[$cateid]['title']}{/if}</li>
        </ul>
</div>
</div>
<div class="xiaoyu_container cl">
	<div class="fishue_unnew_left"> 
    <div class="col-md-9 md-margin-bottom-40 cl">
	{loop $data $da}
		<div class="row blog blog-medium margin-bottom-40 cl">
		<div class="col-md-5">
        <a href="{php echo url('article/agent-show/detail', array('id' => $da['id']));}" target="_blank"><img src="{if !$da['thumb']}{$_W['siteroot']}/web/resource/weizan/images/wz-nopic.jpg{else}{php echo tomedia($da['thumb']);}{/if}" alt="{$da['title']}" class="img-responsive" /></a>
		</div>    
		<div class="col-md-7">
		<h2> <a href="{php echo url('article/agent-show/detail', array('id' => $da['id']));}" target="_blank" >{$da['title']}</a><small>咨询热线：<span>{$da['telephone']}</span></small></h2>
		<div class="row2">
            <span class="name">联系人：</span><span class="dec">{$da['author']}</span>	
        </div>
		<div class="row2">
            <span class="name">手机号码：</span><span class="dec">{$da['mobilephone']}</span>		
        </div>
		<div class="row2">
            <span class="name">公司地址：</span><span class="dec">{$da['address']}</span>			
        </div>
        <p class="xiaoyu_readmore"><a href="{php echo url('article/agent-show/detail', array('id' => $da['id']));}" target="_blank" class="btn-u btn-u-sm">Read More <i class="fa fa-angle-double-right margin-left-5"></i></a></p>
		</div>    
		</div>
	{/loop}
		<div class="xiaoyu_bottom_border"></div>
    </div>
 </div>
 	<!--右栏-->
 <div class="y pph xiaoyu_view_sd"> 
   <div class="col-md-3"> 
    <!-- Posts --> 
    <div class="posts margin-bottom-40"> 
     <div id="posts" class="area">
	 <div id="frameroLVvi" class="cl_frame_bm frame move-span cl frame-1">
	 <div id="frameroLVvi_left" class="column frame-1-c">
	 <div id="frameroLVvi_left_temp" class="move-span temp"></div>
	 <div id="portal_block_78" class="cl_block_bm block move-span">
	 <div id="portal_block_78_content" class="dxb_bc">
	 <div class="headline headline-md"><h2>最新公司</h2></div>
	 {loop $data $da}
		<dl class="dl-horizontal">
			<dt><a href="{php echo url('article/agent-show/detail', array('id' => $da['id']));}"><img  src="{if !$da['thumb']}{$_W['siteroot']}/web/resource/images/nopic-small.jpg{else}{php echo tomedia($da['thumb']);}{/if}"></a></dt>
			<dd>
			<p><a href="{php echo url('article/agent-show/detail', array('id' => $da['id']));}" target="_blank">{$da['title']}</a></P>
			</dd>
		</dl>
	{/loop}
	 </div>
	 </div>
	 </div>
	 </div>
	 </div>
    </div> 
    <div class="headline headline-md">
     <h2>相关地区</h2>
    </div> 
    <div class="tab-v2 margin-bottom-40"> 
	<ul id="myTab1" class="tabHover nav-tabs cl"> 
            <li class="active"><a href="javascript:void(0);">相关地区</a></li>
     </ul>
     <div class="tab-content" id="myTab1_con">       
      <div class="tab-pane J-tab active"  style="display: block;"> 
       <div class="row"> 
        <ul class="list-unstyled xiaoyu_tab_other cl">
{loop $categroys $categroy}		
         <li><a href="{php echo url('article/agent-show/list', array('cateid' => $categroy['id']));}">{$categroy['title']}</a></li>           
{/loop}    
        </ul> 
       </div> 
      </div> 
     </div> 
    </div> 
   </div> 
  </div>
</div>
	{$pager}
{/if}
{if $do == 'detail'}
<div class="breadcrumbs margin-bottom-40 cl">
<div class="xiaoyu_container cl">
        <h1 class="color-green z"><a href="#">{$agent['title']}</a></h1>
        <ul class="y breadcrumb">
        <li><a href="./" title="首页">首页</a> <span class="divider">/</span></li>
		<li><a href="{php echo url('article/agent-show/list');}">公司列表</a><span class="divider">/</span></li>
		<li class="active">{$agent['title']}</li>
        </ul>
</div>
</div>
<div class="xiaoyu_container cl">
<div class="wrap">
    	<div class="content" style="min-height:400px">
            <div class="about_content">
            	<div class="left"> 
				{loop $data $da}
                	<a href="{php echo url('article/agent-show/detail', array('id' => $da['id']));}">{$da['title']}</a>
				{/loop}
                </div>
            	<div class="right">
                    {$agent['content']}
                </div>
            </div>
		</div>
    </div>
</div>
{/if}
</div>

{template 'common/footer-cms'}